import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import * as echarts from 'echarts';
// 引入element
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 引入全局拦截器
import Interceptor from './Interceptor';
// 导入创建的store
import store from "./store/index"
// 挂载
Vue.use(ElementUI);
// 拦截器
Vue.use(Interceptor)
Vue.config.productionTip = false
    // 全局挂载
Vue.prototype.$axios = axios
    // Vue.prototype.$router = router

Vue.prototype.$echarts = echarts
    /* eslint-disable no-new */
new Vue({
    el: '#app',
    axios,
    router,
    // 布置全局事件总线
    beforeCreate() {
        Vue.prototype.$bus = this
    },
    // 导入store
    store,
    components: { App },
    template: '<App/>'
})